<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.lightbox-0.5.min.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery.lightbox-0.5.css" media="screen" />


        <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery.fancybox.css?v=2.1.0" type="text/css" media="screen" />
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.fancybox.pack.js?v=2.1.0"></script>
        <script type="text/javascript">$(document).ready(function() {
                /*
                 *  Simple image gallery. Uses default settings
                 */

                $('.fancybox').fancybox();
            });
</script>

<script type="text/javascript">
    $(function() {
        $('#gallery a').lightBox();
    });
    </script>

 <div class="col-md-7">
       
    <div class="col-md-11" style="margin-top:25px;">
        
                <span class="spanjudulberita">
                   <h4><strong> <?php echo $model->nama_kegiatan; ?></strong></h4>
                </span>
                <br />
                <br />

                <?php
                if(!empty($model->uraian)){
                ?>
                <span class="spandetailberita" style="font-size:14px;">
                    <?php echo $model->uraian; ?>
                </span>
                
                <?php
                }
                ?>


                
                <br />
                <br />

                <?php
                $foto = Foto::model()->findAll('id_kegiatan='.$model->id);

                if(!empty($foto)){
                ?>    
				
                <span class="spandetailberita" style="font-size:14px;margin-top:5px">
                <strong><h4>Foto Kegiatan</h4></strong>
                </span>
                <p> &nbsp;</p>
                <br />
                <?php

                foreach($foto as $row){
                ?>
                
                <a class="fancybox" href='<?php echo Yii::app()->request->baseUrl; ?>/images/kegiatan/<?php echo $row->foto; ?>'data-fancybox-group="gallery" > 
                    <img class="img-polaroid" src='<?php echo Yii::app()->request->baseUrl; ?>/images/kegiatan/<?php echo $row->foto; ?>'width='150' height='150' alt="" /> 
                </a>
                

                <?php
                }
                ?>
                

                <?php
                }
                ?>
                
                
            </div>
    </div>